﻿using System;
using ProdControls.NativePatterns.MessageConstants;
using ProdControls.Utility;

namespace ProdUI.Interaction.Native
{
    internal sealed class ProdTreeViewNative
    {
        internal static int GetNodeCountNative(IntPtr windowHandle)
        {
            int retVal = (int) NativeMethods.SendMessage(windowHandle, (int) TreeViewMessages.TVM_GETCOUNT, 0, 0);

            return retVal;
        }
    }
}